<?php 
if(KT!='KhiThe') exit;
class statistics_controller extends statistics_model{
	
	public function __construct(){
		
		global $lang;
		
		$lang['url_base'] = url_base;	
		$this->path_cur = dirname(__FILE__);	
		parent::__construct();
		parent::addObject('khithe_template');
		parent::addObject('khithe_request');
		parent::addObject('khithe_string');
		parent::addObject('khithe_images');
		
		$this->lang = $lang;
	}
	public function index()
	{
		include_once path_lib.'khithe.counter.php';
		$statistics ='
			<div class="content_Support" style="padding-top:8px; height:25px; min-height:25px;">'.$this->lang['total_new'].' : '.parent::get_total_new().'</div>
			<div class="content_Support" style="padding-top:8px; height:25px; min-height:25px;">'.$this->lang['total_product'].' : '.parent::get_total_product().'</div>
			<div class="content_Support" style="padding-top:8px; height:25px; min-height:25px;">'.$this->lang["Online"].': '.($online).'</div><!--+ mt_rand(3, 10)-->
			<div class="content_Support" style="padding-top:8px; height:25px; min-height:25px;">'.$this->lang['AllVisitor'].': '.$all.'</div>
		';
		
		$this->lang['content_statistics'] = $statistics;
		$strModule = parent::khithe_display_template(dirname(__FILE__).'/statistics');
		return $strModule = parent::khithe_assign($strModule, $this->lang);
	}
	


}
?>